.PHONY:consume_client publish_client
all:consume_client publish_client
consume_client:consume_client.cc ../mqcommon/mq_prot.pb.cc ../mqcommon/mq_message.pb.cc ../third/include/muduo/prot/codec.cc
	g++ -g -std=c++11 $^ -o $@ -I../third/include -L../third/lib -lgtest -lprotobuf -pthread -lmuduo_net -lmuduo_base -lz
publish_client:publish_client.cc ../mqcommon/mq_prot.pb.cc ../mqcommon/mq_message.pb.cc ../third/include/muduo/prot/codec.cc
	g++ -g -std=c++11 $^ -o $@ -I../third/include -L../third/lib -lgtest -lprotobuf -pthread -lmuduo_net -lmuduo_base -lz

.PHONY:clean

clean:
	rm -rf publish_client consume_client